package com.example.myshopping3.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.myshopping3.model.Book;
import java.util.*;

public interface BookService extends IService<Book> {

    //获取所有图书信息
    List<Book> getAllBooks();

    //通过ID获取一条信息
    Book getBookById(Integer id);

    //缓存清除方法
    void clearBookCache(Long bookId);
}
